{include file="header.html"}
<div class="page-header">
	<h6>
		点赞管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			点赞列表
		</small>
	</h6>
</div>

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="article" />
<input type="hidden" name="act" id="act" value="likes" />
<input type="text" class="input-medium" placeholder="关键词" name="keyword" value="{$keyword}" /> 
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>
<a href="?app=article&act=delete_like&all=1&article_id={$article_id}" style="float:right;">删除全部</a>
<div class="table-content">
<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>会员名称</th>
			<th>IP</th>
			<th>点赞时间</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$val item=row}
		<tr>
			<td>{$row.id}</td>
			<td>{$row.name}</td>
			<td>{$row.ip}</td>
			<td>{$row.add_time|date_format:"%Y-%m-%d"}</td>
			<td>
				<a href="?app=article&act=delete_like&article_id={$article_id}&like={$row.id}" class="delete" warning="">
					<button type="button" class="btn btn-xs btn-danger">
					<i class="ace-icon fa fa-trash-o bigger-120"></i>
				</button>
				</a>
			</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
</div>
<div class="mypage">
	共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>
{include file="footer.html"}